package com.nowcoder.client;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.Socket;

public class TcpClient {

    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1", 9000);
            BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            String line = br.readLine();
            System.out.println(line);
            socket.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
